package com.yupi.springbootinit.model.dto.picture;

import lombok.Data;

/**
 * @Author: yudaxian
 * @Description: TODO
 * @DateTime: 2024/10/8 16:48
 **/
@Data
public class PictureRequest {
    private String search;

    private Integer pageNum;

    private Integer pageSize;

    public Integer getPageNum() {
        return (pageNum == null ? 1 : pageNum - 1) * 10;
    }
}
